<!--#layout("/common/container.html"){  -->
  <!-- 顶部 -->
  <form class="layui-form layui-form-pane">
  <div class="layui-header">
    <a href="/index.do" class="layui-hide-xs"><div class="layui-logo">珠海金湾人才服务管理系统</div></a>
    <a href="javascript:;" class="layui-hide-xs"><div class="fsSwitchMenu"><i class="iconfont icon-category"></i></div></a>
    
    <!-- 顶部菜单 -->
    <ul class="layui-nav layui-layout-left fsTopMenu" id="fsTopMenu" lay-filter="fsTopMenu">
      <!--#for(node in menus.children){  -->
      <li class="layui-nav-item ${nodeLP.first?'layui-this'}" dataPid="${node.data.id}"><a href="javascript:;"><i class="layui-icon">${node.data.icon}</i>
      <!--#if(nodeLP.first){  -->
      <cite>${node.data.name}</cite>
      <!--#}else{  -->
      ${node.data.name}
      <!--#}  -->
      </a></li>
      <!--#} -->
    </ul>
    
    <ul class="layui-nav layui-layout-right">

        <li class="layui-nav-item layui-hide-xs">
            <a href="javascript:;" id="helpDoc" hasMessage="${newMessageCount}">操作手册</a>
        </li>
        <li class="layui-nav-item layui-hide-xs">
            <a href="javascript:;" id="message" hasMessage="${newMessageCount}">消息</a>
        </li>
        <!--# if(isPerson != true){ -->
        <li class="layui-nav-item layui-hide-xs">
            <a href="javascript:;" id="todos" hasTodo="${todoCount}">待办</a>
        </li>
        <!--#} -->
        <li class="layui-nav-item layui-hide-xs">
        <a href="javascript:;">
         	${session["core:user"].name}
        </a>
        <!--<dl class="layui-nav-child">-->
          <!--<dd id="changePassword"><a href="javascript:;" >修改密码</a></dd>-->
          <!--&lt;!&ndash;<dd id="changeCompanyButton"><a href="javascript:;">${session["core:currentOrg"].name}</a>&ndash;&gt;-->
          <!--</dd>-->
        <!--</dl>-->
        <li class="layui-nav-item layui-hide-xs">
            <a href="javascript:;" id="changePassword">修改密码</a>
          </dd>
        </li>
      </li>
      <li class="layui-nav-item layui-hide-xs"><a href="${ctxPath}/logout.do"><i class="iconfont"></i> 退出</a></li>
    </ul>
  </div>
  
  <div  id="selectCompany" 
  	style="padding: 50px;display:none;">
  	<div class="layui-row">
		<div class="layui-form-item">
			<select id="companyList"> 
			<!--#
			var allOrgs = session["core:orgs"];
			for(org in allOrgs){
				var checked = false;
				if(session["core:currentOrg"].id==org.id){
					checked=true;
				}
			 -->
		  	
		  	<option value="${org.id}" ${checked?"selected"}>${org.name}</option>
		  	<!--#}  -->
		  	</select>
  		</div>
 	 </div>
 	</div>


  <!-- 左边菜单 -->
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree fsMenu"  lay-filter="fsLeftMenu" id="fsLeftMenu">
      	<!--#
      	for(node in menus.children){  
      	var hasSite = true;//系统的第一个菜单默认显示
      	-->
      	<!--#for(subSystem in node.children){  -->
        <li class="layui-nav-item " dataPid="${node.data.id}" style="display: none;">
          <a href="javascript:;">${subSystem.data.name}</a>
          <dl class="layui-nav-child">
          	<!--#for(menu in subSystem.children){  -->
          	<dd class="" ><a href="javascript:;" menuId="${menu.data.id}" dataUrl="${ctxPath}${menu.data.accessUrl}"><i class="layui-icon">&#xe68e;</i>
          	${menu.data.name}
            </a></dd>
            <!--#}  -->
           </dl>
        </li>
        <!--#}  -->
        <!--#}  -->
      </ul>
    </div>
  </div>

  <!-- 右边内容区域 -->
  <div class="layui-body layui-form">
  	<div class="layui-tab layui-tab-card fsTab" lay-filter="fsTab" lay-allowClose="true">

  		<!-- 菜单导航 -->
		<ul class="layui-tab-title">
		</ul>
		
		<!-- 内容 -->
		<div class="layui-tab-content">
            <div id="welcomeTip" style="text-align: center;">
                <h2 style="margin-top: 100px;margin-bottom: 20px;font-size: 40px;color: #91ADDC;">欢迎进入珠海金湾人才管理系统</h2>
            	<img src="${ctxPath}/js/welcome.png" style="max-width: 100%;">
            </div>
		</div>
	</div>
  </div>
  </form>

<script>
    var needInit = "${needInit}";
    if(needInit == 1){
        layui.use('layer', function(){
            var layer = layui.layer;
            var index = layer.open({
                title:'必须先填写基本信息完整',
                move:false,
                type:2,
                area: ['1000px', '750px'],
                closeBtn: 0,
                content: Common.ctxPath + '/cms/enterprise/initEdit.do'
            });
            layer.full(index);
        });
    }else if(needInit == 2){
        layui.use('layer', function(){
            var layer = layui.layer;
            var index = layer.open({
                title:'必须先填写基本信息完整',
                move:false,
                type:2,
                area: ['1000px', '750px'],
                closeBtn: 0,
                content: Common.ctxPath + '/cms/essentialInformation/initEdit.do'
            });
            layer.full(index);
        });
    }else if(needInit == 3){
        layui.use('layer', function(){
            var layer = layui.layer;
            var index = layer.open({
                title:'首次登陆请先修改登陆密码',
                move:false,
                type:2,
                area: ['1000px', '750px'],
                closeBtn: 0,
                content: Common.ctxPath + '/cms/common/initChangePassword.do'
            });
            layer.full(index);
        });
    }

</script>
<!--#}  -->
  